/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.entity.exercisehistory;

import com.idenger.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

/**
 * 用户做练习记录Entity
 * @author 兰正军
 * @version 2017-12-04
 */
public class EduExerciseHistory extends DataEntity<EduExerciseHistory> {
	
	private static final long serialVersionUID = 1L;
	private String userId;		// 用户ID
	private int score;		// 分值
	private String practiceId;		// 习题ID
	private String content;		// 练习答案
	
	public EduExerciseHistory() {
		super();
	}

	public EduExerciseHistory(String id){
		super(id);
	}

	@Length(min=0, max=64, message="用户ID长度必须介于 0 和 64 之间")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}


	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	@Length(min=0, max=64, message="习题ID长度必须介于 0 和 64 之间")
	public String getPracticeId() {
		return practiceId;
	}

	public void setPracticeId(String practiceId) {
		this.practiceId = practiceId;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
}